package com.test.nnooolwdeaer.bean_wooden.user_info_wooden;

import com.test.nnooolwdeaer.util_wooden.StringUtil_wooden;
import com.google.gson.Gson;

import org.json.JSONObject;

/**
 * 用户登录信息，只在用户手动登录时获取，自动登录不获取
 */
public class OcrInfo_Viet_wooden {

    private static class Inner_wooden {
        private static OcrInfo_Viet_wooden instance = new OcrInfo_Viet_wooden();
    }

    private OcrInfo_Viet_wooden(){}

    public static OcrInfo_Viet_wooden getInstance_wooden(){
        return Inner_wooden.instance;
    }

    public static void parse_wooden(JSONObject objJson){
        Inner_wooden.instance = new Gson().fromJson(objJson.toString(), OcrInfo_Viet_wooden.class);
    }

    private String idcard_number,name,birthday,hometown,address,gender,expire_date;

    public String getIdcard_number() {
        return StringUtil_wooden.getSafeString_wooden(idcard_number);
    }

    public String getName() {
        return StringUtil_wooden.getSafeString_wooden(name);
    }

    public String getBirthday() {
        return StringUtil_wooden.getSafeString_wooden(birthday);
    }

    public String getHometown() {
        return StringUtil_wooden.getSafeString_wooden(hometown);
    }

    public String getAddress() {
        return StringUtil_wooden.getSafeString_wooden(address);
    }

    public String getGender() {
        return StringUtil_wooden.getSafeString_wooden(gender);
    }

    public String getExpire_date() {
        return StringUtil_wooden.getSafeString_wooden(expire_date);
    }

}
